<%@ page import="cci.pojo.*,cci.dao.*,java.util.List" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="personneDB" class="cci.bdd.PersonneDB" scope="page">
	<jsp:setProperty name="personneDB" property="database" value="${applicationScope.DAOPersonne}"/> 
</jsp:useBean>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<!--  List des personnes -->
<table border=1>
<tr>
	<th>ID</th>
	<th>NOM</th>
	<th>PRENOM</th>
</tr>

<c:forEach var="personne" begin="0" items="${personneDB.personnes}">
	<tr>
	<td>${personne.id}</td>
	<td>${personne.nom}</td>
	<td>${personne.prenom}</td>
	</tr>
</c:forEach>




</table>
</body>
</html>